home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / usr_-_Usr_Files / SBIN / FIX-TTYS.{1K < prev    next >
Text File  |  1999-09-17  |  217b  |  17 lines

  1. #!/bin/sh
  2.  
  3. LOCKDIR=/var/lock
  4.  
  5. case "$1" in
  6.     "")        echo "Usage: fix-ttyS device"; exit 1 ;;
  7. esac
  8.  
  9. if [ -f $LOCKDIR/LCK..$1 ]
  10. then
  11.     echo "/dev/$1 is locked" 2>&1
  12.     exit 1
  13. fi
  14.  
  15. chown root /dev/$1
  16. chmod 666 /dev/$1
  17.